package function.listen;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.util.HashMap;
import java.util.Set;
import java.util.zip.DeflaterOutputStream;
import java.util.zip.InflaterInputStream;

import javax.swing.JMenu;
import javax.swing.JMenuItem;

import frame.errortip;
import frame.master;
import frame.vwfileselect;
import frame.data.contrldata;
import function.DataEnAndDe;

public class menu4listen {
	private String info[]= {"VW 打开"};
	private JMenuItem[] item;
	private DataEnAndDe ed=new DataEnAndDe();
	public menu4listen() {
		item=new JMenuItem[info.length];
		contrldata.tool4=new JMenu("解密");
		for(int i=0;i<info.length;i++) {
			item[i]=new JMenuItem(info[i]);
			contrldata.tool4.add(item[i]);
		}
	}
	/**
	 * 加载子菜单监听
	 */
	public void loadmenuitemlisten(master ma) {
		item[0].addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				new vwfileselect(ma);
			}
		});
	}
}
